package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.AccidentBillItem;
import com.olddriver.crm.query.QueryObject;

import java.util.List;

public interface AccidentBillItemMapper {

    int insert(AccidentBillItem record);

    AccidentBillItem selectByPrimaryKey(Long id);

    List<AccidentBillItem> selectAll();

    int updateByPrimaryKey(AccidentBillItem record);

    int queryTotal(QueryObject qo);

    List<AccidentBillItem> queryRows(QueryObject qo);

    //改变事故状态
    void updateCaseState(AccidentBillItem accident);

    void changeAppearState(Long id);

    //改变审核后的状态
    void changeAuditState(Long id);

    AccidentBillItem getClaimByClamId(Long id);

    int getUndealAccident();

    void delete(Long id);

}